package com.jiuyue.dubbo.controller;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jiuyue.dubbo.service.DubboProviderService;

@RestController
public class DubboConsumerCotroller {

	
	@DubboReference
	private DubboProviderService  dubboProviderService;
	
	@RequestMapping("dubbo/mapping")
	public String sayHi(String name) {
		System.out.println("=====================");
		return dubboProviderService.sayHi(name);
	}
	
	
	
	
}
